
String uname = "SanYing";
int age = 18;
String sex = "男";

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  //H1
  Serial.print("姓名:");
  Serial.println(uname);
  Serial.print("年龄:");
  Serial.println((String)age);
  Serial.print("性别:");
  Serial.println(sex);

  //H2
  int time = 0;
  if (time >= 0 && time < 9) {
    Serial.println("早上好");
  }
  if (time >= 9 && time < 12) {
    Serial.println("上午好");
  }
  if (time >= 12 && time < 14) {
    Serial.println("中午好");
  }
  if (time >= 14 && time < 18) {
    Serial.println("下午好");
  }
  if (time >= 18 && time < 0) {
    Serial.println("晚上好");
  }

  //H3
  int i = 0;
  int sum = 0;
  while (i <= 100) {
    if (i % 2 == 0) {
      sum += i;
    }
    i++;
  }
  Serial.println(sum);
}

void loop() {
  // put your main code here, to run repeatedly:

}
